package cn.codergege.shiro.dao;

import java.util.List;

import cn.codergege.shiro.model.User;

public interface UserMapper {
    int deleteByPrimaryKey(Long id) throws Exception;

    int insert(User record) throws Exception;

    int insertSelective(User record) throws Exception;

    User selectByPrimaryKey(Long id) throws Exception;

    int updateByPrimaryKeySelective(User record) throws Exception;

    int updateByPrimaryKey(User record) throws Exception;
    
    // custom
    User selectByName(String username) throws Exception;
    
    List<User> getNullSaltUsers();
}